/*J+TnKrjTuehxKP0tVjtvWHgzAnwdwV6dwJErBl7aBd3oW1ZOSoy3t8fp2LiTHOHS*/

function formBeforeEvent(that, props, moduleId, key, value, data) {
    let meta = that.props.meta.getMeta();
    meta[moduleId].items.map((item) => {
        item.isShowUnit = false;
        item.isShowDisabledData = false;
        item.isMultiSelectedEnabled = true;
        var attrcode = item.attrcode;
        switch (attrcode) {
            case 'pk_org'://财务组织(根据集团过滤)
                item.queryCondition = (p) => {
                    item.isShowUnit = false;
                    return {
                        DataPowerOperationCode: 'fi',//使用权组
                        AppCode: that.props.getSearchParam('c'),
                        isDataPowerEnable: 'Y',
                        TreeRefActionExt: 'nccloud.web.refer.sqlbuilder.PrimaryOrgSQLBuilder'
                    };
                }
                break;
            default:
        }
    });
    that.props.meta.setMeta(meta);
}
export { formBeforeEvent }
/*J+TnKrjTuehxKP0tVjtvWHgzAnwdwV6dwJErBl7aBd3oW1ZOSoy3t8fp2LiTHOHS*/